-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GitHub alert block quotes #118
GitHub alert block quotes #118
Conversation
Lookin goooood, I'm excited 😋 |
Ok @Tweekism @jannis-baum this is ready for feedback I basically took what's here: https://github.com/antfu/markdown-it-github-alerts/blob/main/styles/github-base.css But fit it into our Screenshots: My concerns:
|
6590858
to
25bbe2c
Compare
Hey thanks! I will look into the code later or tomorrow :)
Not sure. On giving their docs one short look I couldn't find instructions. Might also be that our set up is a bit too exotic for this to work. One cheeky thing you could try however is making a symlink in the static directory to their styles at |
These colors are workable, I missed the context for why ANSI colors. Is the intention to use the same colors in the terminal in vim? |
From #89 (comment) onwards. We were thinking to reuse ANSI-colors because we also need them for rendering Jupyter Notebooks.
I honestly don't like them that much to be honest🙈 |
That's a good answer 😄 What kind would work best? My thought is that they could be like the light theme colors but adapted to dark, then adjust and whatever Wdyt about that or did you have something else in mind? I can make an initial suggestion if needed |
I honestly don't have any idea ^^ Would be glad about a suggestion! I did see however that the plugin also has a dark theme CSS (https://github.com/antfu/markdown-it-github-alerts/tree/main/styles) so if you want to go the route of adjusting the light colors to dark that might already be done there :) |
Seems like such hackery 😄 Maybe it's worth it to have all the CSS in there with the rest and avoid this? But I'm kinda interested in what the function of the CSS in the repo is. Whether that's some |
Yeah I can try this as an initial step The dark theme is "GitHub Dark" and notable that it has quite a different background color than yours I could also look at GitHub Dark High Contrast alert colors |
I think it's some bigger thing than just |
Good point!
Yes true. Might just be that those colors "pop" a bit too much but maybe it's a good starting point anyways. |
The markdown-it plugin repo CSS has slight differences in colors to what they actually are on GitHub as of this moment, but it does look like they were taken from the GitHub variables directly, ~8 months ago: antfu/markdown-it-github-alerts@595f578 (due to the same variable names that you see when you inspect GH) Speculation: I guess that GH adjusts these colors over time, and CSS such like in the plugin doesn't keep up So I would take the colors straight from inspecting GH. But lets look at screenshots for:
Light
Plugin repo CSSGitHub up-to-date CSSDark
Plugin repo CSSGitHub up-to-date Dark CSSGitHub up-to-date Dark High Contrast CSSGitHub up-to-date Dark Dimmed CSS (basically Low Contrast) |
So in my opinion any of the last 3 (note: I added a "low contrast") could work for dark, and all look pretty good I would avoid the outdated plugin CSS Thoughts @jannis-baum ? |
Default:
High contrast:
Dimmed:
|
Ok yeah the up to date dimmed does look a lot nicer. |
I'm a little triggered that Note has shifted from blue to more of a purple 😂 And it might be a little too similar to Important? |
Its easy to tweak a single colour in custom css, but it is important to have sensible defaults |
Yeah I agree with this very much :) I have a little feeling that the blue is just a bit too light, similarly to the ANSI yellow but not nearly as severe. But the more I've stared it and tried to come up with an improvement, the more I think it's kinda OK enough. |
Hahaha okay so let's just merge this? In case we end up disliking it too much we can tweak it when we refactor the CSS in #120. That one will probably be a huge color discussion anyways😂 |
Oh but before we merge, @tuurep do you want to commit the latest version we agreed on now? I.e. ANSI plus the warning and error colors. :root {
--color-alert-note: #a5d5fe;
--color-alert-tip: #b4fa72;
--color-alert-important: #ff8ffd;
--color-alert-warning: #ffaf00;
--color-alert-caution: #ff5f5f;
} |
Alright, done! |
Close #89